<script setup>
import { useTodosStore } from '../store';


const todos = useTodosStore()
</script>

<template>
  <footer class="footer">
    <span class="todo-count"><strong>{{todos.leftCount}}</strong> item left</span>
    <ul class="filters">
      <li v-for="item in todos.filters" :key="item" @click="todos.changeActive(item)">
        <a :class="{selected:item===todos.active}" href="#/">{{item}}</a>
      </li>
    </ul>
    <button class="clear-completed" @click="todos.clearDone">Clear completed</button>
  </footer>
</template>

<style lang="less" scoped>

</style>
